package structure.proxy.staticProxy.daos;

import structure.proxy.staticProxy.interfaces.ITeacherDao;

public class TeacherDaoProxy implements ITeacherDao {
    TeacherDao target;

    public TeacherDaoProxy(TeacherDao target) {
        this.target = target;
    }

    @Override
    public void teach() {
        System.out.println("structure.proxy begins ...");
        target.teach();
        System.out.println("structure.proxy summit ...");
    }
}
